package contact;

import java.io.Serializable;
import java.util.List;

import entities.Contact;

public interface ContactDAO extends Serializable{

	public List<Contact> listContact();
	
	public Contact getById(int id);
	
	public List<Contact> getByName(String firstName, String lastName);
	
	public List<Contact> getByFirstName(String firstName);
	
	public List<Contact> getByAge(int age);
	
	public boolean saveOrUpdate(Contact contact);
}
